// import { request } from 'umi';
import Https from "@/utils/Https2";
//根据字典类型查询字典数据分页,字典详细数据查询
export const queryTableDataInfoListReq = (params: object) =>
  Https.post(`/system/dict/data/list`, params, true);
// request(`/system/dict/data/list`, {
//   params,
//   needCode: true,
// });
//新增字典类型
export const addDictionaryInfoReq = (data: {}) =>
  Https.post(`/system/dict/data`, data, true);
// request('/system/dict/data', {
//   method: 'post',
//   data,
//   needCode: true,
// });
//修改数据字典
export const updateDictInfoReq = (data: {
  // deptId: number;
}) => Https.put(`/system/dict/data`, data, true);
// request('/system/dict/data', {
//   method: 'put',
//   data,
//   needCode: true,
// });
//查询
export const queryInfoReq = (id: number | string) =>
  Https.get(`/system/dict/data/${id}`, {}, true);
// request(`/system/dict/data/${id}`, {
//   needCode: true,
// });
//删除数据字典数据信息
export const delDictInfoReq = (id: number | string) =>
  Https.delete(`/system/dict/data/${id}`, {}, true);
// request(`/system/dict/data/${id}`, {
//   method: 'delete',
//   needCode: true,
// });
//字典名称下拉框
export const queryDictNameOptionReq = (params: object) =>
  Https.post(`/system/dict/type/dict/optionselect`, {}, true);
// request('/system/dict/type/optionselect', {
//   params,
//   needCode: true,
// });
//字典详细数据查询
// export const queryDictInfoDetailReq = (params) =>
//   request('/system/dict/data/list', {
//     params,
//     needCode: true,
//   });
